<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php header('Content-type: text/html; charset=UTF-8'); ?>

<?php echo $html->css('reqtracking');?>
<!-- <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /> -->
<title><?php echo $title_for_layout?></title>
<!-- Include external files and scripts here (See HTML helper for more info.) -->
<?php echo $scripts_for_layout?>
<?php /* echo $javascript->link('scripts');*/ ?>
<?php echo $javascript->link('prototype'); ?>
<?php echo $javascript->link('show_layer'); ?>
<?php e($javascript->link('scriptaculous.js?load=effects,controls')); ?>

</head>
<body>
<!-- If you'd like some sort of menu to
show up on all of your views, include it here -->

<?php 
//$reqtrack->afficheArray($report_types);
//print_r($this) ;
?>

<div class="header_reqtrack">
<div id="logo_sogeti"></div>

<div id="middlebar">
<ul class="menu">
	<li><?php echo $html->link('Paramètres', '#', array('onclick' => 'javascript:showlayer(\'sm_1\')')); ?></li>
	<ul class="submenu" id="sm_1">
		<li><?php echo $html->link('Documentation', 'http://code.google.com/p/reqtracking/'); ?></li>
		<li><?php echo $html->link('Gestion Administrateur', array('controller'=> 'summaries', 'action'=>'index')); ?></li>
		<li><?php echo $html->link('Changer de projet', array('controller'=> 'projects', 'action'=>'choose')); ?></li>
		<li><?php echo $html->link('Changer d\'utilisateur', array('controller'=> 'users', 'action'=>'login')); ?></li>
		<li><?php echo $html->link('Se déconnecter', array('controller'=> 'users', 'action'=>'logout')); ?></li>
	</ul>
</ul>
</div>
<div id="middlebar">
<ul class="menu">
	<li><?php echo $html->link('Requirements', '#', array('onclick' => 'javascript:showlayer(\'sm_2\')')); ?></li>
	<ul class="submenu" id="sm_2">
		<li><?php echo $html->link('Liste', array('controller'=> 'requirements', 'action'=>'index')); ?></li>
		<li><?php echo $html->link('Ajouter', array('controller'=> 'requirements', 'action'=>'add')); ?></li>
	</ul>
</ul>
</div>
<div id="middlebar">
<ul class="menu">
	<li><?php echo $html->link('Procédures', '#', array('onclick' => 'javascript:showlayer(\'sm_3\')')); ?></li>
	<ul class="submenu" id="sm_3">
		<li><?php echo $html->link('Liste', array('controller'=> 'procedures', 'action'=>'index')); ?></li>
		<li><?php echo $html->link('Ajouter', array('controller'=> 'procedures', 'action'=>'add')); ?></li>
		<li><?php echo $html->link('Attacher Requirement', array('controller'=> 'requirements', 'action'=>'link')); ?></li>
		<!-- <li><?php echo $html->link('Attacher Step', array('controller'=> 'steps', 'action'=>'link')); ?></li> -->
	</ul>
</ul>
</div>
<div id="middlebar">
<ul class="menu">
	<li><?php echo $html->link('Steps', '#', array('onclick' => 'javascript:showlayer(\'sm_4\')')); ?></li>
	<ul class="submenu" id="sm_4">
		<li><?php echo $html->link('Liste', array('controller'=> 'steps', 'action'=>'index')); ?></li>
		<li><?php echo $html->link('Ajouter', array('controller'=> 'steps', 'action'=>'add')); ?></li>
	</ul>
</ul>
</div>
<div id="middlebar">
<ul class="menu">
	<li><?php echo $html->link('Rapports', '#', array('onclick' => 'javascript:showlayer(\'sm_5\')')); ?></li>
	<?php
	if ( !empty($report_types) ){
		e('<ul class="submenu" id="sm_5">');
		foreach( $report_types as $RT){
			$report_types = $RT['ReportType'];
			e('<li>');
			echo $html->link($report_types['rep_name'], array('controller'=> 'reports', 'action'=> $report_types['rep_action']));
			e('</li>');

		}
		e('</ul>');
	}
	?>
</ul>
</div>



</div>


<!-- Here's where I want my views to be displayed -->
<div class="content_reqtrack"><?php echo $content_for_layout ?></div>


<!-- Add a footer to each displayed page -->
<!--
<div id="footer">
<p><a href="http://validator.w3.org/check?uri=referer"><img
	src="http://www.w3.org/Icons/valid-xhtml10"
	alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a> <a
	href="http://validator.w3.org/check?uri=referer"><img
	src="http://www.w3.org/Icons/valid-xhtml10-blue"
	alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a></p>
	
</div> -->
<div class="footer_reqtrack">© Sogeti High Tech 2008
<div id="logo_sogeti"></div>
</div>
</body>
</html>
